package com.system.manager.modules.projectLibrary.enums;

import com.system.manager.common.enums.IErrorCode;
import com.system.manager.modules.projectLibrary.service.impl.ProjectServiceImpl;

/**
 * @Classname ProjectLibraryErrorCode
 * @Description TODO
 * @Date 2021/11/9 15:37
 * @Created by jisf：【429627912@qq.com】
 */
public enum ProjectLibraryErrorCode implements IErrorCode {

    USER_HAS_NO_PERMISSIONS(2000,"用户没有权限"),


    CODE_NOT_NULL(2201,"单位组织机构代码不能为空"),
    NAME_NOT_NULL(2202,"单位名称不能为空"),
    FIRM_NAME_ALREADY_EXIST(2203,"单位名称已存在"),
    FIRM_CODE_ALREADY_EXIST(2204,"单位组织机构代码已存在"),
    PARAMETER_UNRECOGNIZED(2205,"参数无法识别"),

    FIRM_DOES_NOT_EXIST(2401,"公司不存在"),
    PROJECT_DOES_NOT_EXIST(2402,"项目不存在"),

    AUDIT_UPDATE_FAILURE(2601,"审核修改失败"),
    AUDIT_DELETE_FAILURE(2602,"审核删除失败"),
    UPDATE_PROJECT_FAILURE(2603,"修改项目信息失败"),
    PROJECT_NAME_ALREADY_EXIST(2203,"项目名称已存在");


    private Integer code;
    private String msg;

    ProjectLibraryErrorCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
